const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')


module.exports = {

 module:{
  rules:[
   {
    test:/\.css$/i,
    use:["style-loader","css-loader"]
   }
  ]
 },
 // 其他配置
 plugins:[
  new HtmlWebpackPlugin({
   template:'./public/index.html'
  })
 ],
 mode:'production',
 entry :'./src/main.js',
 output : {
  path:path.resolve(__dirname,'dist'),
  filename:'bundle.js'
 }
}